package com.zj.request;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

@XStreamAlias(value = "taxML")
public class OpenRequest<Head, Body> {
	@XStreamAsAttribute
	@XStreamAlias(value = "cnName")
	private String cnName;

	@XStreamAsAttribute
	@XStreamAlias(value = "name")
	private String name;
	
	@XStreamAsAttribute
	private String version = "1.0";

	@XStreamAsAttribute
	@XStreamAlias(value = "xsi:type")
	private String type;


	@XStreamAsAttribute
	@XStreamAlias(value = "xmlns")
	private String xmlns = "http://www.chinatax.gov.cn/dataspec/";	
	
	@XStreamAsAttribute
	@XStreamAlias(value = "xmlns:xsi")
	private String xsi = "http://www.w3.org/2001/XMLSchema-instance";

	@XStreamAlias(value = "Head")
	private Head head;
	
	@XStreamAlias(value = "Body")
	private Body body;

	public String getCnName() {
		return cnName;
	}

	public void setCnName(String cnName) {
		this.cnName = cnName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getXmlns() {
		return xmlns;
	}

	public void setXmlns(String xmlns) {
		this.xmlns = xmlns;
	}

	public String getXsi() {
		return xsi;
	}

	public void setXsi(String xsi) {
		this.xsi = xsi;
	}

	public OpenRequest(Head head, Body body) {
		this.body = body;
		this.head = head;
	}

	public OpenRequest() {

	}

	public Head getHead() {
		return head;
	}

	public void setHead(Head head) {
		this.head = head;
	}

	public Body getBody() {
		return body;
	}

	public void setBody(Body body) {
		this.body = body;
	}

}
